<template>
  <div>
  Home  
  <button @click="handleClick">{{count}}</button>
  </div>
</template>

<script lang="ts">
/* ts不能使用vue2.x的语法 */
export default ({
  data() {
    return {
      count:1
    }
  },
  methods: {
    handleClick(){
      console.log(11);
      
    }
  },
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
